import { IPSChartSeriesBar } from './ipschart-series-bar';
import { PSDEChartSeriesImpl } from './psdechart-series-impl';

export class PSDEChartSeriesBarImpl extends PSDEChartSeriesImpl implements IPSChartSeriesBar {
  get barCategoryGap(): IModel {
    return this.M.barCategoryGap;
  }

  get barGap(): IModel {
    return this.M.barGap;
  }

  get barMaxWidth(): IModel {
    return this.M.barMaxWidth;
  }

  get barMinHeight(): number {
    return this.M.barMinHeight;
  }

  get barMinWidth(): IModel {
    return this.M.barMinWidth;
  }

  get barWidth(): IModel {
    return this.M.barWidth;
  }

  get stack(): boolean {
    return this.M.stack;
  }

  get cls(): string {
    return 'PSDEChartSeriesBarImpl';
  }

  instanceof(cls: string): boolean {
    if (
      cls == 'IPSModelObject' ||
      cls == 'IPSObject' ||
      cls == 'control.IPSControlItem' ||
      cls == 'control.IPSControlItemNavigatable' ||
      cls == 'control.IPSControlObjectNavigatable' ||
      cls == 'control.IPSNavigatable' ||
      cls == 'control.IPSNavigateParamContainer' ||
      cls == 'control.chart.IPSChartSeries' ||
      cls == 'control.chart.IPSChartSeriesBar'
    )
      return true;
    return super.instanceof(cls);
  }
}
